<?php
namespace app\admin\model;

use think\Model;

class Huashu extends Model
{
    public function getStatusTextAttr($value,$data)
    {
       $status = [1=>'<span class="label label-success">启用</span>',2=>'<span class="label label-danger">禁用</span>'];
       return $status[$data['status']];
    }

    public static function getHuashuLeixing(){
        return [ ['id'=>'1','name'=>'状态话术'], ['id'=>'2','name'=>'自动审核通过'],['id'=>'3','name'=>'自动审核未通过'],['id'=>'4','name'=>'人工审核通过'],['id'=>'5','name'=>'人工审核未通过']];
    }
}